package com.liuc.practice.server.servlet;

import com.liuc.practice.server.pojo.Request;
import com.liuc.practice.server.pojo.Response;

/**
 * 定义 servlet 规范，service 是核心方法
 *
 * @Author Liu Chang
 * @Date 2021/7/22 11:00 下午
 */
public interface Servlet {

    void init() throws Exception;

    void destroy() throws Exception;

    void service(Request request, Response response) throws Exception;
}
